import { defultAlova } from "../index.js";

/** 角色列表 */
export const getOrderFoodRoleList = (data) => {
  const method = defultAlova.Post(
    "/customer/mechanism/order/getOrderFoodRoleList",
    data
  );
  return method;
};
// 权限列表
export const getOrderFoodMenuList = (params) => {
  const method = defultAlova.Get(
    '/customer/mechanism/order/getOrderFoodMenuList',
    {
      params,
    }
  );
  return method;
};
// 角色授权
export const editOrderFoodRoleMenu = (data) => {
  const method = defultAlova.Post(
    "/customer/mechanism/order/editOrderFoodRoleMenu",
    data
  );
  return method;
};
// 角色转移
export const editOrderFoodRole = (data) => {
  const method = defultAlova.Post(
    "/customer/mechanism/order/editOrderFoodRole",
    data
  );
  return method;
};
// 添加员工
export const addOrderFoodMember = (data) => {
  const method = defultAlova.Post(
    '/customer/mechanism/order/addOrderFoodMember',
    data
  );
  return method;
};
// 查询权限列表
export const queryOrderFoodMenuList = (params) => {
  const method = defultAlova.Get(
    '/customer/mechanism/order/queryOrderFoodMenuList',
    {
      params,
    }
  );
  return method;
};

// 角色添加
export const editOrderFoodMemberRole = (data) => {
  const method = defultAlova.Post(
    "/customer/mechanism/order/editOrderFoodMemberRole",
    data
  );
  return method;
};
